Congratulations. You've reached the end of the third module in this course. You should now be familiar with how to make use of functions and stored procedures in a MySQL
database using Python, along with creating and managing database
connection pools. Let's take a few moments
to recap some of the key skills that you've gained in this module's lessons. In the first lesson
of this module, you learned how to make use of MySQL functions using Python. You began with a quick
review of MySQL functions by reminding yourself of the advantages that
functions offer. Their main advantage
is that they eliminate the need to carry out
repetitive tasks. You also familiarized
yourself with many of the common MySQL functions that you explored in earlier courses. These included string, numeric, date and time functions, as well as comparison and
control flow functions. You recapped how
string functions are used to manipulate
string values. You learned how to make use of numeric functions to perform
tasks on numeric datasets. You saw how you can extract
date and time values from a database using
date and time functions. You received a
reminder of how to compare values within
a database using comparison functions and you reviewed the process
steps for using control flow functions to
evaluate conditions and determine the execution
path or flow of a query. You then learned how to access MySQL functions using Python
by exploring examples from the Little Lemon
database and you also demonstrated your new skills and knowledge in the lab
and quiz activities. In the second lesson
of this module, you recapped the basics
of stored procedures. You learned once again that a stored procedure is a block of code that can be stored in your database and
invoked as required. Stored procedures offer
several advantages, like consistent code, reusable code and the ability to maintain
code as one single block. You then recapped the syntax used to create
stored procedures, including the create procedure, call and drop procedure commands and the
begin end block and you examined
the advantages of using stored procedures
with Python. You saw that they increase
the performance of Python and reduce traffic
between Python and MySQL. The next item in this lesson, you learned how to access
stored procedures using Python. You explored some examples of stored procedures
from Little Lemon, like the INNER JOIN operation. You saw how they made use of
these stored procedures in Python to query a
MySQL database. You also learned how
to call or invoke a procedure in Python using
the call proc method. Retrieving results using
Python's next function and you saw an example of the
use of fetch all methods. Once a stored procedure has been successfully run using Python, the data is returned
as a list of tuples. You can index the dataset or run the for loop to
print all records. You then demonstrated
your ability to use stored procedures in Python
in a lab environment and you tested your knowledge of Python and stored
procedures in a quiz. In the third and final
lesson of this module, you learned about
connection pools. During this review,
you learned that connection pools are
resource efficient, provide faster connectivity,
simplify programming models, and increase the performance
of Python applications. You then learned about Python
MySQL connection pools. You learned that a database connection pool is managed and maintained using a MySQL
connection pool module. This module is imported into your working environment so that you can access its
functionality. The module also offers many useful functions and attributes that you
can make use of. This includes pool name, pool size, and connection ID, and there are also
several class methods available like get connection, is connected and close. These methods are useful for managing and
maintaining the module. You then explored an
example of how to create a MySQL connection pool using the MySQL Connector Python API. You also explored the concept of database connection pooling. You learned that database
connection pooling involves creating and managing a pool of connections to run faster, more efficient and
optimized connections between clients and
MySQL database. Connections are managed
between clients and users can drop in and out of sessions by using active connections. You can create multiple pools
with specific numbers of connections so that
there's always an available connection
for every user. You then completed a lab
in which you worked with connection pools and you tested your knowledge of
connection pools in a quiz. You should now be equipped with the skills and
knowledge required to work with MySQL functions and stored procedures using Python and you should also
now be able to create and manage database
connection pools. Well done. I look forward
to guiding you through the next module in which you'll work with a
database client.